new Vue({
	el: '#main',
	data: {
		data:""
	},
	methods: {
		plusReady: function() {
          this.getMessage();
		},
		getMessage: function() {
			var  context=this;
			ajAjax("app/user/getUserInfo.do", null, function(data) {
				context.data=data.user;
			}, function(err) {

			});
		},
		openDetail: function() {
			commonOpenWindow("edit-my-info.html", "edit-my-info.html", null, "1")
		},
		toNewOrg:function(e){
			e.stopPropagation();
			commonOpenWindow("create-organize.html", "create-organize.html", null, "1")
		}

	},
	mounted: function() {
		if(window.plus) {
			this.plusReady();
		} else {
			document.addEventListener("plusready", this.plusReady, false);
		}
	}
});